<?php

namespace app\index\model;
use think\Db;
use think\Model;

class Common extends Model
{

    /***
     * 返回当前系统设置的标本种类
     */
    public function GetBbzl($dh=''){
        if(empty($dh)) {

            return $res = Db::table('xt_bbzl')
                ->query("SELECT dh,mc FROM dbo.xt_bbzl ORDER BY CAST(dh AS INT) ASC");
        }
        return $res = Db::table('xt_bbzl')->field('mc')->where('dh',$dh)->find();
    }







}